/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.hellodoctor.slayer.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link com.hellodoctor.slayer.service.http.AppointmentServiceSoap}.
 *
 * @author Shahbaj
 * @see com.hellodoctor.slayer.service.http.AppointmentServiceSoap
 * @generated
 */
public class AppointmentSoap implements Serializable {
	public static AppointmentSoap toSoapModel(Appointment model) {
		AppointmentSoap soapModel = new AppointmentSoap();

		soapModel.setAppointmentId(model.getAppointmentId());
		soapModel.setDoctorId(model.getDoctorId());
		soapModel.setPatientId(model.getPatientId());
		soapModel.setAppointmentDate(model.getAppointmentDate());
		soapModel.setAppointmentTime(model.getAppointmentTime());
		soapModel.setStatus(model.getStatus());
		soapModel.setCreateDate(model.getCreateDate());
		soapModel.setModifiedDate(model.getModifiedDate());

		return soapModel;
	}

	public static AppointmentSoap[] toSoapModels(Appointment[] models) {
		AppointmentSoap[] soapModels = new AppointmentSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static AppointmentSoap[][] toSoapModels(Appointment[][] models) {
		AppointmentSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new AppointmentSoap[models.length][models[0].length];
		}
		else {
			soapModels = new AppointmentSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static AppointmentSoap[] toSoapModels(List<Appointment> models) {
		List<AppointmentSoap> soapModels = new ArrayList<AppointmentSoap>(models.size());

		for (Appointment model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new AppointmentSoap[soapModels.size()]);
	}

	public AppointmentSoap() {
	}

	public long getPrimaryKey() {
		return _appointmentId;
	}

	public void setPrimaryKey(long pk) {
		setAppointmentId(pk);
	}

	public long getAppointmentId() {
		return _appointmentId;
	}

	public void setAppointmentId(long appointmentId) {
		_appointmentId = appointmentId;
	}

	public long getDoctorId() {
		return _doctorId;
	}

	public void setDoctorId(long doctorId) {
		_doctorId = doctorId;
	}

	public long getPatientId() {
		return _patientId;
	}

	public void setPatientId(long patientId) {
		_patientId = patientId;
	}

	public Date getAppointmentDate() {
		return _appointmentDate;
	}

	public void setAppointmentDate(Date appointmentDate) {
		_appointmentDate = appointmentDate;
	}

	public int getAppointmentTime() {
		return _appointmentTime;
	}

	public void setAppointmentTime(int appointmentTime) {
		_appointmentTime = appointmentTime;
	}

	public int getStatus() {
		return _status;
	}

	public void setStatus(int status) {
		_status = status;
	}

	public Date getCreateDate() {
		return _createDate;
	}

	public void setCreateDate(Date createDate) {
		_createDate = createDate;
	}

	public Date getModifiedDate() {
		return _modifiedDate;
	}

	public void setModifiedDate(Date modifiedDate) {
		_modifiedDate = modifiedDate;
	}

	private long _appointmentId;
	private long _doctorId;
	private long _patientId;
	private Date _appointmentDate;
	private int _appointmentTime;
	private int _status;
	private Date _createDate;
	private Date _modifiedDate;
}